package com.zhm.demo.util;

import java.io.File;

public class FileUtil {

    public static void main(String[] args) {
//        URL resource = FileUtil.class.getResource("application.yml");
//        byte[] bytes = cn.hutool.core.io.FileUtil.readBytes(new File("D:/文档/纪劲松面试题.txt"));
        byte[] bytes = new byte[]{0X41,0X42,0X43,0X44,0X45,0X46,0X47};
        System.out.println(new String(bytes));
        System.out.println("crc="+((long)JCRC32.encode2(bytes)));
    }
}
